package com.ui.basic.command.masterdata;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;

import com.common.basic.base.BaseCommand;
import com.ui.basic.ibatis.model.masterdata.TblMCountry;

public class CommandCountry extends BaseCommand implements java.io.Serializable {

	private static final long serialVersionUID = -8538326506406570560L;

	private Long id;

	@NotBlank
	@Length(max = 3)
	private String countryCode;

	@NotBlank
	@Length(max = 50)
	private String countryName;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getCountryName() {
		return countryName;
	}

	public void setCountryName(String countryName) {
		this.countryName = countryName;
	}

	public void setProperty(TblMCountry tblMCountry) {
		this.id = tblMCountry.getId();
		this.countryCode = tblMCountry.getCode();
		this.countryName = tblMCountry.getName();
	}

}